﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nhom04_DiaDiemDuLich.DAO
{
    public class KiemTraKetNoiDAO:DataProvider
    {

        public bool KiemTraKetNoi(DTO.ThongTinKetNoiDTO info)
        {
            try
            {
                ConnectionString = @"Data Source=" + info.IpAddress + ";Initial Catalog=" + info.DatabaseName + ";user=" + info.LoginName + ";password=" + info.Password;                
                connect();
                return true;
            }
            catch(Exception ex)
            {
                return false;
            }            
       }
    }
}
